
 
<?php
	$matv=$_GET["matv"];
	$curPage=$_REQUEST['curPage'];
	$sql="select * from thanhvien  where ThanhVienID=$matv";
	$kq=mysql_query($sql);
	$n=mysql_num_rows($kq);
	if($n==0)
	{
		echo "No data";
	}
	else 
	{
		$r=mysql_fetch_array($kq);
		$matv=$r["ThanhVienID"];
		$hoten=$r["HoTen"];
		$email=$r["Email"];
		$dienthoai=$r["DienThoai"];
		$ngaysinh=$r["NgaySinh"];
		$cmnd=$r["CMND"];
	}
?>
<table width="740" border="0" cellspacing="0" cellpadding="0">
<form method="post" action="include/thanhvien-xulyupdate.php">
  <tr>
    <td style="padding-left:80px" height="30">Họ Tên :</td>
    <td><input type="text" name="hoten" style="width:240px" value="<?php echo "$hoten"; ?>"></td>
  </tr>
  <tr>
  <td style="padding-left:80px" height="30">Email :</td>
    <td><input type="text" name="email" style="width:240px" value="<?php echo "$email"; ?>"></td>
  </tr>
  <tr>
  	<td style="padding-left:80px" height="30">Điện Thoại :</td>
    <td><input type="text" name="dienthoai" style="width:240px" value="<?php echo "$dienthoai"; ?>"></td>
  </tr>
  <tr>
  	<td style="padding-left:80px" height="30">Ngày Sinh :</td>
    <td><input type="text" name="ngaysinh" style="width:240px" value="<?php echo "$ngaysinh"; ?>"></td>
  </tr>
  <tr>
  	<td style="padding-left:80px" height="30">CMND :</td>
    <td><input type="text" name="cmnd" style="width:240px" value="<?php echo "$cmnd"; ?>"></td>
  </tr>
  <tr>
  	<td class="ketthuc" colspan="2" height="35" align="center">
    <input name="Update" type="submit" value="Update" class="button">
    <input name="" type="reset" value="Reset" class="button">  
    </td>
  </tr>
  <input type="hidden" name="matv" value="<?php echo "$matv"; ?>" /> 
  <input type="hidden" name="curPage" value="<?php echo "$curPage"; ?>" />
  </form>
</table>







